<?php

class DBMExpressionFilter implements DBMFilter {
	/**
	 * The expression
	 *
	 * @var string
	 */
	private $expression;
	
	/**
	 * Return the expression
	 *
	 * @return string
	 */
	public function getExpression(){
		return $this->expression;
	}
	
	/**
	 * Set the expression
	 *
	 * @param string $expression
	 */
	public function setExpression($expression){
		$this->expression = $expression; 
	}

	/**
	 * The constructor of the fitler
	 *
	 * @param string $expression
	 */
	public function __construct($expression){
		$this->setExpression($expression);		
	}
	
	/**
	 * Return this expression in sql notation
	 *
	 * @return string
	 */
	public function toSQL($databaseType, DBMCommand $command){
		return $this->getExpression();
	}
}

?>
